package com.model.dome1;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Day {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
//        System.out.println(now);
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        String s = now.format(dateTimeFormatter);
        System.out.println(s);

    }
}
